package test.com.sms.selenium.singlepoint.util;

import org.openqa.selenium.By;

import test.com.sms.selenium.framework.SeleniumPageUtil;
import test.com.sms.selenium.util.SeleniumUtil;


public class SpIncidentEditServiceAddressNewAddressPageUtil extends SeleniumPageUtil {

	//address
	public final static By IEN_LINK_SAVE = By.id("ctl44_btnSave");
	public final static By IEN_LINK_DELETE = By.id("ctl44_btnDelete");
	public final static By IEN_LINK_CLOSE = By.id("ctl44_btnSave");
	public final static By IEN_SPAN_TITLE = By.id("ctl44_lblHdr");
	public final static By IESA_LINK_ADDRESS = By.id("ctl44_tabMenu_ctl44_tabMenuLB_d55b15f7-3ccf-4ff4-a545-16ff123e43a5");
	public final static By IESA_LINK_DETAIL = By.id("ctl44_tabMenu_ctl44_tabMenuLB_0a8494c6-d7ed-4273-9884-a790f3fc067d");
	public final static By IESA_LINK_MAP= By.id("ctl44_tabMenu_ctl44_tabMenuTD_758c4d90-0ea7-4fda-a33d-da54774b5af8");
	public final static By IESA_LINK_NOTES = By.id("ctl44_tabMenu_ctl44_tabMenuLB_56313eb1-8a9f-4571-9c24-f5e545dcbfe8");
	public final static By IESA_TD_CUSTOMER_NAME = By.xpath("//*[@id='ctl44_trAddrName']/td[1]");
	public final static By IESA_INPUT_CUSTOMER_NAME = By.id("ctl44_txtAddrName");
	public final static By IESA_TD_ADDRESS_NAME = By.xpath("//*[@id='ctl44_trCustAddrName']/td[1]");
	public final static By IESA_INPUT_ADDRESS_NAME = By.id("ctl44_txtCustAddrName");
	public final static By IESA_TD_ADDRESS1 = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[3]/td[1]");
	public final static By IESA_INPUT_ADDRESS1 = By.id("ctl44_txtAddress1");
	public final static By IESA_TD_ADDRESS2 = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[4]/td[1]");
	public final static By IESA_INPUT_ADDRESS2 = By.id("ctl44_txtAddress2");
	public final static By IESA_TD_ADDRESS3 = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[5]/td[1]");
	public final static By IESA_INPUT_ADDRESS3 = By.id("ctl44_txtAddress3");
	public final static By IESA_TD_ADDRESS4 = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[6]/td[1]");
	public final static By IESA_INPUT_ADDRESS4 = By.id("ctl44_txtAddress4");
	public final static By IESA_TD_CITY = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[7]/td[1]");
	public final static By IESA_INPUT_CITY = By.id("ctl44_txtCity");
	public final static By IESA_INPUT_STATE = By.id("ctl44_txtState");
	public final static By IESA_INPUT_ZIP = By.id("ctl44_txtZip");
	public final static By IESA_TD_CONTRY = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[8]/td[1]");
	public final static By IESA_INPUT_CONTRY = By.id("ctl44_txtCountry");
	public final static By IESA_DIV_CONTRY_LIST = By.id("ctl44_aceCountryCode_completionListElem");	
	public final static By IESA_SPAN_PHONE = By.id("ctl44_lblPhone");
	public final static By IESA_INPUT_PHONE = By.id("ctl44_txtPhone");
	public final static By IESA_SPAN_FAX = By.id("ctl44_lblFax");
	public final static By IESA_INPUT_FAX = By.id("ctl44_txtFax");
	public final static By IESA_SPAN_MOBILE = By.id("ctl44_lblMobile");
	public final static By IESA_INPUT_MOBILE = By.id("ctl44_txtMobile");
	public final static By IESA_TD_TIME_ZONE = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[12]/td[1]");
	public final static By IESA_SELECT_TIME_ZONE = By.id("ctl44_cboTimeZoneID");
	public final static By IESA_TD_PRI_CONTACT = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[13]/td[1]");
	public final static By IESA_LINK_PRI_CONTACT = By.id("ctl44_btnContactEdit");
	public final static By IESA_INPUT_PRI_CONTACT = By.id("ctl44_txtContact");
	public final static By IESA_DIV_CONTACT_LIST = By.id("ctl44_aceContact_completionListElem");
	public final static By IESA_TD_EMIAL = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[14]/td[1]");
	public final static By IESA_INPUT_EMIAL = By.id("ctl44_txtContactEMail");
	public final static By IESA_TD_OFFICE_PHONE = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[15]/td[1]");
	public final static By IESA_INPUT_OFFICE_PHONE = By.id("ctl44_txtContactPhone");
	public final static By IESA_TD_MOBILE_PHONE = By.xpath("//*[@id='ctl44_PnlAddress']/table/tbody/tr[16]/td[1]");
	public final static By IESA_INPUT_MOBILE_PHONE = By.id("ctl44_txtContactMobile");
	//detail
	public final static By IESA_TD_WARE_HOUSE = By.xpath("//*[@id='ctl44_tblMASInfo']/tbody/tr[1]/td[1]");
	public final static By IESA_SELECT_WARE_HOUSE = By.id("ctl44_cboWarehouse");
	public final static By IESA_TD_SALE_PERSON = By.xpath("//*[@id='ctl44_tblMASInfo']/tbody/tr[2]/td[1]");
	public final static By IESA_SELECT_SALE_PERSON = By.id("ctl44_cboSalesPerson");
	public final static By IESA_TD_SCHEDULE = By.xpath("//*[@id='ctl44_tblMASInfo']/tbody/tr[3]/td[1]");
	public final static By IESA_SELECT_SCHEDULE = By.id("ctl44_cboTaxSchedule");
	//map
	//notes
	public final static By IESA_TD_NOTES = By.xpath("//*[@id='ctl44_trSiteNotes']/td[1]");
	public final static By IESA_TEXTARE_NOTES = By.id("ctl44_txtSiteNote");
	public static void swithToTab(By by){
		SeleniumUtil.click(SeleniumUtil.getCachedElement(by));
		SeleniumUtil.waitForFixedMilliseconds(1000);
		SeleniumUtil.selectDefaultContent();
	}
}
